package com.tledu.production.mapper.people;

import com.tledu.production.model.people.Department;
import com.tledu.production.model.system.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Antg
 * @date 2021/8/17  9:38
 */
public interface DepartmentMapper {
    //查询所有
    List<Department> findAll();
    //根据id查询部门
    Department findById(String id);
    //添加
    int add(Department department);
    //编辑
    int edit(Department department);
    //删除
    int batchDel(String[] ids);
    //搜索
    List<Department> search(@Param("type") String type, @Param("searchText") String searchText);
}
